class Notifier < ActionMailer::Base


def sendcode_multipart_alternative(mail_info)
@from = "myOffice.my<noreply@myOffice.my>"
@recipients = mail_info["user_email"]
@subject = "myOffice.My Request Code" 
@mail_info = mail_info
@body["mail_info"] = mail_info
@sent_on = Time.now

part :content_type => "text/html",
:body => render_message("sendcode_multipart_alternative_plain", "mail_info" => mail_info)
end


def sendconfirmation_multipart_alternative(mail_info)
@from = "myOffice.my<noreply@myOffice.my>"
@recipients = mail_info["company_email"]
@subject = "myOffice.my Ebidding Registration!" 
@mail_info = mail_info
@body["mail_info"] = mail_info
@sent_on = Time.now

part :content_type => "text/html",
:body => render_message("sendconfirmation_multipart_alternative_plain", "mail_info" => mail_info)
end



def sendconfirmation_resend_multipart_alternative(mail_info)
@from = "myOffice.my<noreply@myoffice.my>"
@recipients = mail_info["company_email"]
@subject = "myOffice.my Registration!"
@mail_info = mail_info
@body["mail_info"] = mail_info
@sent_on = Time.now

part :content_type => "text/html",
:body => render_message("sendconfirmation_resend_multipart_alternative_plain", "mail_info" => mail_info)
end


def send_my_password(mail_info)
@from = "myOffice.my<myoffice@localhost.my>"
@recipients = mail_info["user_email"]
@subject = 'Registration at myOffice.my' 
@mail_info = mail_info
@body["mail_info"] = mail_info
@sent_on = Time.now

part :content_type => "text/html",
:body => render_message("send_my_password_plain", "mail_info" => mail_info)
end

def send_forgot_company_password(mail_info)
@from = "myOffice.my<noreply@myoffice.my>"
@recipients = mail_info["company_email"]
@subject = 'New password for myOffice.My' 
@mail_info = mail_info
@body["mail_info"] = mail_info
@sent_on = Time.now

part :content_type => "text/html",
:body => render_message("send_forgot_company_password_plain", "mail_info" => mail_info)
end


def send_forgot_user_password(mail_info)
@from = "myOffice.my<noreply@myoffice.my>"
@recipients = mail_info["user_email"]
@subject = 'New password for myOffice.My' 
@mail_info = mail_info
@body["mail_info"] = mail_info
@sent_on = Time.now

part :content_type => "text/html",
:body => render_message("send_forgot_user_password_plain", "mail_info" => mail_info)
end

end
